package com.wisely.xxboot.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2017</p>
 * <p>Company: 中视数讯</p>
 * <p>Site: www.digi-zones.com</p>
 *
 * @author shengping
 * @version 1.0
 * @date 2017/6/21
 */
@Component //组件，没有明确的角色
@ConfigurationProperties(prefix = "author") //通过@ConfigurationProperties加载properties文件内的配置，通过prefix属性指定properties的配置的前缀，
                                            // 通过locations执行properties文件的位置，如：@ConfigurationProperties(prefix = "author", locations={"classpath:config/author.properties"})
public class AuthorSettings {
    private String name;
    private Long age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getAge() {
        return age;
    }

    public void setAge(Long age) {
        this.age = age;
    }
}
